The Database object returned by the CurrentDB( ) function. A reference of DBEngine.Workspaces(0).Databases(0) returns the first database opened. This concept applies only to Microsoft Access.
DBEngine.Workspaces(0).Databases(0)